home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / mail / pine3.96.tar.gz / pine3.96.tar / pine3.96 / pine / makefile.gas < prev    next >
Makefile  |  1996-06-07  |  5KB  |  151 lines

  1. # $Id: makefile.gas,v 1.2 1996/06/07 16:49:37 mikes Exp $
  2. #    copied from makefile.sco & modified    trr
  3. #
  4. #            T H E    P I N E    M A I L   S Y S T E M
  5. #
  6. #   Laurence Lundblade and Mike Seibel
  7. #   Networks and Distributed Computing
  8. #   Computing and Communications
  9. #   University of Washington
  10. #   Administration Building, AG-44
  11. #   Seattle, Washington, 98195, USA
  12. #   Internet: lgl@CAC.Washington.EDU
  13. #             mikes@CAC.Washington.EDU
  14. #
  15. #   Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  16. #
  17. #
  18. #   Pine and Pico are registered trademarks of the University of Washington.
  19. #   No commercial use of these trademarks may be made without prior written
  20. #   permission of the University of Washington.
  21. #
  22. #   Pine, Pico, and Pilot software and its included text are Copyright
  23. #   1989-1996 by the University of Washington.
  24. #
  25. #   The full text of our legal notices is contained in the file called
  26. #   CPYRIGHT, included with this distribution.
  27. #
  28. #
  29. #   Pine is in part based on The Elm Mail System:
  30. #    ***********************************************************************
  31. #    *  The Elm Mail System  -  Revision: 2.13                             *
  32. #    *                                                                     *
  33. #    *             Copyright (c) 1986, 1987 Dave Taylor               *
  34. #    *             Copyright (c) 1988, 1989 USENET Community Trust    *
  35. #    ***********************************************************************
  36. #
  37. #
  38.  
  39. #
  40. #     Make file for the Pine mail system for Altos System V (using gcc)
  41. #
  42. # Port courtesy of Tim Rice <tim@trr.metro.net>    trr
  43. #
  44. #
  45. #
  46. #   Most commonly fiddled flags for compiler.
  47. #   Uncomment the setttings desired here
  48. #
  49. CC=          gcc
  50. RM=          rm -f
  51. LN=          ln -s
  52. MAKE=        make
  53. OPTIMIZE=    # -O
  54. PROFILE=     # -pg
  55. DEBUG=       -g -DDEBUG
  56. SHELL=       /bin/sh
  57. IMAPDIR=     ../c-client
  58. PICODIR=     ../pico
  59.  
  60. STDLIBES=    -ltermlib -lsocket -lrpc -lgen -lxenix
  61. LOCLIBES=    $(PICODIR)/libpico.a $(IMAPDIR)/c-client.a
  62. LIBES=       $(EXTRALIBES) $(LOCLIBES) $(STDLIBES)
  63.  
  64. STDCFLAGS=   -DASV -DSYSTYPE=\"ASV\"
  65. CFLAGS=      $(OPTIMIZE) $(PROFILE) $(DEBUG) $(EXTRACFLAGS) $(STDCFLAGS)
  66.  
  67. obj=    addrbook.o adrbklib.o args.o context.o filter.o \
  68.     folder.o help.o helptext.o imap.o init.o mailcap.o mailcmd.o \
  69.     mailindx.o mailpart.o mailview.o newmail.o other.o pine.o \
  70.     reply.o screen.o send.o signals.o status.o strings.o ttyin.o \
  71.     ttyout.o os.o
  72.  
  73. cfiles= addrbook.c adrbklib.c args.c context.c filter.c \
  74.     folder.c help.c helptext.c imap.c init.c mailcap.c mailcmd.c \
  75.     mailindx.c mailpart.c mailview.c newmail.c other.c pine.c \
  76.     reply.c screen.c send.c signals.c status.c strings.c ttyin.c \
  77.     ttyout.c os.c
  78.  
  79. pine:  $(obj) $(LOCLIBES)
  80.     echo "char datestamp[]="\"`date`\"";" > date.c
  81.     echo "char hoststamp[]="\"`hostname`\"";" >> date.c
  82.     $(CC) $(LDFLAGS) $(CFLAGS) -o pine $(obj) date.c $(LIBES)
  83.  
  84. # this is not part of pine
  85. pine-use:    pine-use.c
  86.     $(CC) -o pine-use pine-use.c
  87.  
  88. clean:
  89.     $(RM) *.o os.h os.c helptext.c helptext.h
  90.     cd osdep; make clean; cd ..
  91.  
  92.  
  93. HEADERS= headers.h pine.h os.h helptext.h context.h \
  94.       ../c-client/mail.h ../c-client/osdep.h
  95.  
  96. addrbook.o:    addrbook.c  $(HEADERS) adrbklib.h $(PICODIR)/pico.h
  97. adrbklib.o:     adrbklib.c  $(HEADERS) adrbklib.h
  98. args.o:        args.c      $(HEADERS)
  99. context.o:    context.c   $(HEADERS) ../c-client/misc.h
  100. filter.o:    filter.c    $(HEADERS) ../pico/pico.h
  101. folder.o:    folder.c    $(HEADERS)
  102. help.o:        help.c      $(HEADERS)
  103. helptext.o:    helptext.c
  104. imap.o:            imap.c      $(HEADERS)
  105. init.o:        init.c      $(HEADERS)
  106. mailcmd.o:    mailcmd.c   $(HEADERS) $(PICODIR)/pico.h
  107. mailcap.o:      mailcap.c   $(HEADERS)
  108. mailindx.o:    mailindx.c  $(HEADERS)
  109. mailpart.o:    mailpart.c  $(HEADERS)
  110. mailview.o:    mailview.c  $(HEADERS)
  111. newmail.o:    newmail.c   $(HEADERS)
  112. os.o:        os.c         $(HEADERS)
  113. other.o:    other.c     $(HEADERS) $(PICODIR)/pico.h
  114. pine.o:        pine.c      $(HEADERS)
  115. reply.o:    reply.c     $(HEADERS)
  116. screen.o:    screen.c    $(HEADERS)
  117. send.o:            send.c      $(HEADERS) ../c-client/smtp.h ../pico/pico.h
  118. signals.o:    signals.c   $(HEADERS)
  119. status.o:    status.c    $(HEADERS)
  120. strings.o:    strings.c   $(HEADERS)
  121. ttyin.o:    ttyin.c     $(HEADERS)
  122. ttyout.o:    ttyout.c    $(HEADERS)
  123.  
  124. os.h:    osdep/os-asv.h
  125.     $(RM) os.h
  126.     $(LN) osdep/os-asv.h os.h
  127.  
  128. helptext.c:    pine.hlp
  129.         ./cmplhelp.sh  < pine.hlp > helptext.c
  130.  
  131. helptext.h:    pine.hlp
  132.         ./cmplhlp2.sh  < pine.hlp > helptext.h
  133.  
  134. os.c:    osdep/os-asv.c
  135.     $(RM) os.c
  136.     $(LN) osdep/os-asv.c os.c
  137.  
  138. # os.c is derived from several files in the osdep sub-directory.
  139. # The dependencies here will be different for each port.
  140. osdep/os-asv.c:    osdep/bld_path osdep/canacces osdep/canonicl \
  141.         osdep/chnge_pw osdep/coredump osdep/creatdir \
  142.         osdep/diskquot.non osdep/domnames osdep/err_desc \
  143.         osdep/expnfldr osdep/fgetpos osdep/filesize osdep/fltrname \
  144.         osdep/fnexpand osdep/header osdep/hostname \
  145.         osdep/jobcntrl osdep/lstcmpnt osdep/mimedisp osdep/pipe \
  146.         osdep/print osdep/pw_stuff osdep/readfile osdep/debuging \
  147.         osdep/rename osdep/srandom.dum osdep/tempfile osdep/tempnam \
  148.         osdep/sendmail osdep/execview osdep/writ_dir \
  149.         osdep/os-asv.ic
  150.     cd osdep; $(MAKE) includer os-asv.c; cd ..
  151.